package com.sicheng.metadata.se.exp.first;

import java.util.Scanner;

/**
 * @author zsc
 * @version 1.0
 * @date 2021/9/9 20:39
 */
public class IsOdd {
    public static boolean isOdd(int x) {
        return Math.abs(x) % 2 != 0;
    }

    public static void main(String[] args) {
        System.out.println("请输入:");
        if (isOdd(new Scanner(System.in).nextInt()))
            System.out.println("是奇数");
        else System.out.println("不是奇数");
    }
}
